package com.lh.controller;

import com.lh.domian.ResponseResults;
import com.lh.service.CategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author LuoHang
 * @Date 2022-08-26 01:46
 **/
@RestController
@RequestMapping("/category")
public class CategoryController {
    @Resource
    private CategoryService categoryService;

    @GetMapping("/categoryList")
    public ResponseResults categoryList(){
        return categoryService.categoryList();
    }
}
